package com.hellomeng.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBean1 {
    public static void main(String[] args) {
        ApplicationContext applicationContext =
                    new ClassPathXmlApplicationContext("applicationContext.xml");
        //获得类的实例:
        Bean1 bean1 = (Bean1)applicationContext.getBean("bean1");
    }
}
